<?php

/*
 * WebUser is the customized CWebUser class.
 */

class WebUser extends CWebUser {

    private $_model;

    public function getModel() {
        if ($this->_model === null) {
            $this->_model = User::model()->findByPk($this->id);
        }
        return $this->_model;
    }

}